import request from '@/utils/request'
import log from "@/views/monitor/job/log";

// 查询【请填写功能名称】列表
export function listTilte(query) {
  return request({
    url: '/violate/tilte/list',
    method: 'get',
    params: query
  })
}

// 查询【shopName】列表
export function listShopName() {
  return request({
    url: '/violate/typeShop/listShopName',
    method: 'get'
  })
}

// 查询【多级一级类目计数】列表
export function listCategoryNumber(query) {
  return request({
    url: '/violate/tilte/listCategoryNumber',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getTilte(id) {
  return request({
    url: '/violate/tilte/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addTilte(data) {
  return request({
    url: '/violate/tilte',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateTilte(data) {
  return request({
    url: '/violate/tilte',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delTilte(id) {
  return request({
    url: '/violate/tilte/' + id,
    method: 'delete'
  })
}

// 删A除全部【请填写功能名称】
export function delTilteAll() {
  return request({
    url: '/violate/tilte/all' ,
    method: 'delete'
  })
}

// 导入tilte数据表
export function importTilte(data) {
  return request({
    url: '/violate/tilte/import',
    method: 'post',
    data: data
  })
}
// 导入删除数据模板
export function importTilteDelete(data) {
  return request({
    url: '/violate/tilte/importDelete',
    method: 'post',
    data: data
  })
}

// 一键去重
export function fundistinct() {
  return request({
    url: '/violate/tilte/distinct',
    method: 'get',
  })
}

// 选择删除
export function selectDelete(query) {
  return request({
    url: '/violate/tilte/deleteSelectList',
    method: 'get',
    params: query
  })
}
